package com.gfm.story.controller;

import com.gfm.story.entity.base.ResultBean;
import com.gfm.story.service.adver.AdvertisementsService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;

/**
 * @BelongsProject: story
 * @BelongsPackage: com.gfm.story.controller
 * @Author: Administrator
 * @CreateTime: 2019-06-17 11:33
 * @Description: ${Description}
 */
@RequestMapping("/Adver")
@Controller
public class AdverController {

    @Resource
    private AdvertisementsService advertisementsService;

    @RequestMapping("/selectAdverPollingTime")
    @ResponseBody
    public ResultBean selectAdverPollingTime(){
        return advertisementsService.selectAdverPollingTime();
    }

    @RequestMapping("/selectAdverAllOpen")
    @ResponseBody
    public ResultBean selectAdverAllOpen(){
        return  advertisementsService.selectAdverAllOpen();
    }
}
